package com.syq.entity;

import java.util.ArrayList;
import java.util.List;

public class CoursetypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CoursetypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCtnoIsNull() {
            addCriterion("ctno is null");
            return (Criteria) this;
        }

        public Criteria andCtnoIsNotNull() {
            addCriterion("ctno is not null");
            return (Criteria) this;
        }

        public Criteria andCtnoEqualTo(String value) {
            addCriterion("ctno =", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotEqualTo(String value) {
            addCriterion("ctno <>", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoGreaterThan(String value) {
            addCriterion("ctno >", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoGreaterThanOrEqualTo(String value) {
            addCriterion("ctno >=", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLessThan(String value) {
            addCriterion("ctno <", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLessThanOrEqualTo(String value) {
            addCriterion("ctno <=", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLike(String value) {
            addCriterion("ctno like", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotLike(String value) {
            addCriterion("ctno not like", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoIn(List<String> values) {
            addCriterion("ctno in", values, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotIn(List<String> values) {
            addCriterion("ctno not in", values, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoBetween(String value1, String value2) {
            addCriterion("ctno between", value1, value2, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotBetween(String value1, String value2) {
            addCriterion("ctno not between", value1, value2, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnameIsNull() {
            addCriterion("ctName is null");
            return (Criteria) this;
        }

        public Criteria andCtnameIsNotNull() {
            addCriterion("ctName is not null");
            return (Criteria) this;
        }

        public Criteria andCtnameEqualTo(String value) {
            addCriterion("ctName =", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameNotEqualTo(String value) {
            addCriterion("ctName <>", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameGreaterThan(String value) {
            addCriterion("ctName >", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameGreaterThanOrEqualTo(String value) {
            addCriterion("ctName >=", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameLessThan(String value) {
            addCriterion("ctName <", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameLessThanOrEqualTo(String value) {
            addCriterion("ctName <=", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameLike(String value) {
            addCriterion("ctName like", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameNotLike(String value) {
            addCriterion("ctName not like", value, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameIn(List<String> values) {
            addCriterion("ctName in", values, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameNotIn(List<String> values) {
            addCriterion("ctName not in", values, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameBetween(String value1, String value2) {
            addCriterion("ctName between", value1, value2, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtnameNotBetween(String value1, String value2) {
            addCriterion("ctName not between", value1, value2, "ctname");
            return (Criteria) this;
        }

        public Criteria andCtimgIsNull() {
            addCriterion("ctImg is null");
            return (Criteria) this;
        }

        public Criteria andCtimgIsNotNull() {
            addCriterion("ctImg is not null");
            return (Criteria) this;
        }

        public Criteria andCtimgEqualTo(String value) {
            addCriterion("ctImg =", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgNotEqualTo(String value) {
            addCriterion("ctImg <>", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgGreaterThan(String value) {
            addCriterion("ctImg >", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgGreaterThanOrEqualTo(String value) {
            addCriterion("ctImg >=", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgLessThan(String value) {
            addCriterion("ctImg <", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgLessThanOrEqualTo(String value) {
            addCriterion("ctImg <=", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgLike(String value) {
            addCriterion("ctImg like", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgNotLike(String value) {
            addCriterion("ctImg not like", value, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgIn(List<String> values) {
            addCriterion("ctImg in", values, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgNotIn(List<String> values) {
            addCriterion("ctImg not in", values, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgBetween(String value1, String value2) {
            addCriterion("ctImg between", value1, value2, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtimgNotBetween(String value1, String value2) {
            addCriterion("ctImg not between", value1, value2, "ctimg");
            return (Criteria) this;
        }

        public Criteria andCtstateIsNull() {
            addCriterion("ctState is null");
            return (Criteria) this;
        }

        public Criteria andCtstateIsNotNull() {
            addCriterion("ctState is not null");
            return (Criteria) this;
        }

        public Criteria andCtstateEqualTo(String value) {
            addCriterion("ctState =", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateNotEqualTo(String value) {
            addCriterion("ctState <>", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateGreaterThan(String value) {
            addCriterion("ctState >", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateGreaterThanOrEqualTo(String value) {
            addCriterion("ctState >=", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateLessThan(String value) {
            addCriterion("ctState <", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateLessThanOrEqualTo(String value) {
            addCriterion("ctState <=", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateLike(String value) {
            addCriterion("ctState like", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateNotLike(String value) {
            addCriterion("ctState not like", value, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateIn(List<String> values) {
            addCriterion("ctState in", values, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateNotIn(List<String> values) {
            addCriterion("ctState not in", values, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateBetween(String value1, String value2) {
            addCriterion("ctState between", value1, value2, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtstateNotBetween(String value1, String value2) {
            addCriterion("ctState not between", value1, value2, "ctstate");
            return (Criteria) this;
        }

        public Criteria andCtdescIsNull() {
            addCriterion("ctDesc is null");
            return (Criteria) this;
        }

        public Criteria andCtdescIsNotNull() {
            addCriterion("ctDesc is not null");
            return (Criteria) this;
        }

        public Criteria andCtdescEqualTo(String value) {
            addCriterion("ctDesc =", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescNotEqualTo(String value) {
            addCriterion("ctDesc <>", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescGreaterThan(String value) {
            addCriterion("ctDesc >", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescGreaterThanOrEqualTo(String value) {
            addCriterion("ctDesc >=", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescLessThan(String value) {
            addCriterion("ctDesc <", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescLessThanOrEqualTo(String value) {
            addCriterion("ctDesc <=", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescLike(String value) {
            addCriterion("ctDesc like", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescNotLike(String value) {
            addCriterion("ctDesc not like", value, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescIn(List<String> values) {
            addCriterion("ctDesc in", values, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescNotIn(List<String> values) {
            addCriterion("ctDesc not in", values, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescBetween(String value1, String value2) {
            addCriterion("ctDesc between", value1, value2, "ctdesc");
            return (Criteria) this;
        }

        public Criteria andCtdescNotBetween(String value1, String value2) {
            addCriterion("ctDesc not between", value1, value2, "ctdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}